package com.itboye.ihomebank.me;

import java.util.ArrayList;
import java.util.List;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.adapter.MyGuanJiaAdapter;
import com.itboye.ihomebank.base.BaseFragment;
import com.itboye.ihomebank.bean.MyGuanJiaBean;
import com.itboye.ihomebank.custom.XListView;
/**
 * 我的生活管家（派单中,维修中，待评价）
 *
 */
public class ActivityMyGuanJia extends BaseFragment {
	XListView guanli_xlistView;
	
	MyGuanJiaAdapter adapter;
	
	int status;
	
	List<MyGuanJiaBean> list=new ArrayList<MyGuanJiaBean>();
	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.activity_my_guanjia;
	}
	
	public ActivityMyGuanJia(int status) {
		this.status=status;
	}
	
	
	@Override
	public void onMyActivityCreated() {
		
		adapter=new MyGuanJiaAdapter(getActivity(), list, R.layout.item_my_guanjia);
		guanli_xlistView.setAdapter(adapter);
		
		for (int i = 0; i < 1; i++) {
			MyGuanJiaBean bean=new MyGuanJiaBean();
			bean.setName("0xxxx"+i);
			bean.setType(status);
			
			list.add(bean);
		}
		adapter.notifyDataSetChanged();
		
	}

	

}
